package com.hsoft.zhxy.app.common.model.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@TableName("jcgg_xtcs")
public class XtcsglEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "csbs", type = IdType.ASSIGN_ID)
    @NotBlank(message = "参数标识不能为空")
    private String csbs;       //参数标识

    @NotBlank(message = "参数标识说明不能为空")
    private String csbssm;       //参数标识说明

    @NotBlank(message = "参数值不能为空")
    private String csz;       //参数值

    private String bz;       //备注

    @JSONField(format = "yyyy-MM-dd HH:mm:ss") // 格式化
    private Date cjsj;       //创建时间

    private String cjr;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss") // 格式化
    private Date bgsj;       //变更时间

    private String bgr;

}
